#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QMessageBox>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    if (!QSslSocket::supportsSsl()) {
        QMessageBox::information(0, "Secure Socket Client",
                                 "This system does not support OpenSSL.");
        return -1;
    }
    //Certificate exist already in Maemo phone, but not in the emulator
//    #ifndef Q_WS_MAEMO_5
//    QList<QSslCertificate> CAcerts =
//            QSslCertificate::fromPath("PortalCert.cer") +
//            QSslCertificate::fromPath("WebmailCert.cer") +
//            // QSslCertificate::fromPath("Equifax_Secure_Certificate_Authority.cer") +
//            QSslCertificate::fromPath("WinhaCert.cer");

//       qDebug() << "root CA certificates:\n"
//                << CAcerts
//                << "\n";
//    QSslSocket::setDefaultCaCertificates(CAcerts);
//    #endif





    MainWindow w;
    //symbian specific to take fullscreen
#if defined(Q_WS_S60)
    w.showMaximized();
#else
    w.show();
#endif
    return a.exec();
}
